www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\admin\adminModelCustomPage\D_ajax_copy_pic-old.asp

    <%


'**************************************************************
' 新动软网站管理系统
' 官方网站: http://www.aspcpu.com
' 系统作者: 阮丁远(网名:天下程序)
' Copyright 新动软网站管理系统 版权所有
'**************************************************************


%>










<%

dir_set="../../"



Server.ScriptTimeout=9999999


session.timeout=600


%>


<!--#include file=../../inc/conn.asp-->






<!--#include file=../inc/checkadmin2.asp-->

<!--#include file=../../inc/functionFiless.asp-->



<!--#include file=../../inc/ND_class_function.asp-->


<%

set filea=new Cls_FSO
set fileb=new DosAsp 

per=7
ended=0
status1="ok"

if request("pos")="" then




set a11=new DosAsp 




if filea.ReportFolderStatus(server.mappath("../../editTemp/"))=1 then


if (a11.Rd(server.mappath("../../editTemp/")))<>true then
status1="delete shibai"
end if

end if






dddd=loadfile("D_edit_a_template.asp")


call createfile("../../editTemp/D_edit_a_template.asp",dddd,true)




dddd=loadfile("D_chk_edit_a_template.asp")


call createfile("../../editTemp/D_chk_edit_a_template.asp",dddd,true)




dddd=loadfile("checkadmin3.asp")


call createfile("../../editTemp/checkadmin3.asp",dddd,true)



dddd=loadfile("fckeditor.html")


call createfile("../../editTemp/fckeditor.html",dddd,true)



dddd=loadfile("fckdialog.html")


call createfile("../../editTemp/fckdialog.html",dddd,true)


dddd=loadfile("D_del_a_moban.asp")


call createfile("../../editTemp/D_del_a_moban.asp",dddd,true)



dddd=loadfile("fckeditor.original.html")


call createfile("../../editTemp/fckeditor.original.html",dddd,true)


dddd=loadfile("css.css")


call createfile("../../editTemp/css.css",dddd,true)





dddd=loadfile("fckeditor_fullpage.asp")


call createfile("../../editTemp/fckeditor_fullpage.asp",dddd,true)




dddd=loadfile("fckeditor.original_fullpage.html")


call createfile("../../editTemp/fckeditor.original_fullpage.html",dddd,true)







Const JET_3X = 4

Function CompactDB(dbPath, boolIs97)

'-------------------new code1--------------------
'重要
on error resume next
'-------------------new code1--------------------


Dim fso, Engine, strDBPath
strDBPath = left(dbPath,instrrev(DBPath,""))


Set fso = CreateObject(fssoo_nd_var_str_x_customx)



'-------------------new code2--------------------
if fso.FileExists(strDBPath & "temp.mdb") then
fso.DeleteFile(strDBPath & "temp.mdb")
end if
'-------------------new code2--------------------




If fso.FileExists(dbPath) Then
Set Engine = CreateObject("JRO.JetEngine")

If boolIs97 = "True" Then
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath, _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb;" _
& "Jet OLEDB:Engine Type=" & JET_3X
Else
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath, _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb"
End If
fso.CopyFile strDBPath & "temp.mdb",dbpath
fso.DeleteFile(strDBPath & "temp.mdb")
Set fso = nothing
Set Engine = nothing
CompactDB = "你的数据库 " & dbpath & " 已经压缩完毕" & vbCrLf
Else
CompactDB = "The database name or path has not been found. Try Again" & vbCrLf
End If

End Function



   ' If IsObject(conn) Then
     '   conn.Close
      '  Set conn = Nothing
    'End If

'call CompactDB(Server.MapPath(dir_set&main_data_mdb), "-1")



'call OpenConn()





sql=""
else

sql=" where id>"&request("pos")

end if


%>



<%

set rs1=server.CreateObject("adodb.recordset")
       
rs1.open "select * from ND_templates_list_cache "&sql&" order by id asc",conn,1,1



for i=1 to per
if rs1.eof then

ended=1
exit for

end if

now_pos1=rs1("id")


path1=rs1("template_full_path_filename")

if instr(1,path1,"{",1)=0 and instr(1,path1,"}",1)=0  then



set rs112=server.CreateObject("adodb.recordset")
       
rs112.open "select * from ND_templates_folder_reg where is_default_template=true",conn,1,1


if rs112.eof then status1="没有设置默认模板"


ppath="templates/"&rs112("templates_folder_path_name")&"/"









if rs1("is_template_or_other")="1" then

if rs1("is_too_big_template")="0" then


ppppp=11111


else

pppppp=11111


end if

else




if rs1("is_too_big_template")="0" then

call createfile("../../editTemp"&"/"&path1,"1111",true)





call deletefile("../../editTemp"&"/"&path1)






if filea.CopyAFile(server.mappath("../../"&ppath&path1), server.mappath("../../editTemp"&"/"&path1))<>1 then

status1="other file(not template) copy shibai"


end if



end if

end if




end if




rs1.movenext



next

rs1.close
set rs1=nothing





response.ContentType="text/xml"

response.write "<?xml   version=""1.0""   encoding=""gb2312""?>"

response.write "<aaaa>"
response.write "<affff><![CDATA["&ended
response.write "]]></affff><affff2><![CDATA["&now_pos1&"]]></affff2><affff5><![CDATA["&left((path1),235)&"]]></affff5><affff6><![CDATA["&status1&"]]></affff6></aaaa>"




















%>